#ifndef ITEM_H
#define ITEM_H

#include "../ai.h"
#include "../world.h"
#include "../player.h"

class Item:public AI{
    public:
        Item(World *world);
        void createModel();
        virtual void setPosition(Ogre::Vector3 pos);
        virtual int getType(){
            return TYPE_ITEM;
        }
        void animDeath(){};

        virtual Ogre::Vector3 getPosition(){
            return m_node->getPosition();
        }

        virtual bool colides(){return true;}
        virtual void effect(Player *player){}

        virtual void move(float time);
        virtual void colide(AI *object);
        virtual void destroy();

    protected:
        virtual std::string getModel(){return "knot.mesh";}

    private:
        World *m_world;
        Ogre::SceneNode *m_node;
};

#endif
